package com.test.dao;

import com.test.model.Money;
import com.test.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectKey;

@Mapper
public interface MoneyMapper {

    @SelectKey(statement = "SELECT * from money", keyColumn = "username", keyProperty = "username", resultType = String.class, before = true)
    Money selectByPrimaryKey(String username);
}